import React, { Component } from 'react'

import { Link,Outlet} from 'react-router-dom'

export default class Pages extends Component {
    render() {
        return (
            <div>
                <Link to={{pathname:"news",state:{name:876}}}>news</Link>
                <Link to="message/0">message0</Link>
                <Link to="message/1">message1</Link>
                <Link to="message/2">message2</Link>
                <div>
                    xxx
                    <Outlet></Outlet>
                </div>
                <div>
                    xxx1222
                    <Outlet></Outlet>
                </div>
            </div>
        )
    }
}
